<%@ page contentType="text/html; charset=utf-8" language="java" errorPage="" %>
<%@ page import="javax.naming.Context"%> 
<%@ page import="javax.sql.DataSource"%> 
<%@ page import="javax.naming.InitialContext"%> 
<%@ page import="java.sql.*"%> 
<%@page import="dataconn.dataconn"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@include file="../JS/adminsession.jsp" %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="../css/background.css" rel="stylesheet" type="text/css" />
</head>
 
 <BODY id=css-zen-garden>
<DIV id=container>
<DIV id=intro>
<DIV id=quickSummary>
<P class=p2>欢迎，<%=session.getAttribute("RealName") %>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../JS/logout.jsp">退出</a>&nbsp;&nbsp;&nbsp;<a href="../EditUser.jsp">修改资料</a>&nbsp;&nbsp;&nbsp;<a href="../MyBug.jsp">返回前台</a></P>
</DIV>
<DIV id=newproject>
<H3><SPAN>添加项目</SPAN></H3>
  <form name="projectform" method="post" action="project_save.jsp">
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="table_style">
  <tr bgcolor="#52514E">
    <td colspan="2">添加一个新项目</td>
  </tr>
    <tr bgcolor="#52514E">
      <td width="30%">项目名</td>
      <td align="left"><input name="ProjectName" type="text" class="selectlist" id="ProjectName" />
      </td>
    </tr>
    <tr bgcolor="#52514E">
      <td colspan="2"><input type="submit" name="button" value="添加" />
      </td>
    </tr>
</table>  </form>
</DIV>
</DIV>
<DIV id=supportingText>
  <DIV id=newmodule>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</DIV>
</DIV>
<DIV id=linkList>
<DIV id=linkList2>
<DIV id=lusers>
<H3 class=users></H3>
<UL>
  <LI><a href="GroupMaintain.jsp"><SPAN 
  class=accesskey>浏览/维护分组</apan></a> </li> 
  <LI><A href="AddGroup.jsp"><SPAN 
  class=accesskey>添加新的分组</SPAN></A> </LI> 
    <LI><A href="AddUser.jsp"><SPAN 
  class=accesskey>浏览/维护用户</SPAN></A> </LI> 
  </UL>
</DIV>
<DIV id=lprojects>
<H3 class=projects></H3>
<UL>
    <LI><A href="NewProject.jsp"><SPAN 
  class=accesskey>新建项目</SPAN></A> </LI>  
<script> 
function go(obj){ 
self.location=obj.options[obj.selectedIndex].value; 
return false; 
} 
</script> 
        <LI>
        <form  method="post" action="ManageProject.jsp">
          <select name="project" class="treelist"  onchange="go(this)" >
            <option selected="selected">维护项目</option>
   <%
   dataconn con=new dataconn();
   String sql2="select ProjectName,ProjectID from TestProject where IsDropped='0'";
   ResultSet rs2=con.executeQuery(sql2);

   while(rs2.next())
   {
      String ProjectID=rs2.getString("ProjectID");
      String ProjectName=rs2.getString("ProjectName");
   %>
            <option value="ManageProject.jsp?ProjectID=<%=ProjectID%>"><%=ProjectName%></option>
            <%} %>
 <%
    rs2.close();
    con.closeConn();
    con.closeStmt(); 
 %>
          </select>
        </form>
      </LI>
</UL>
</DIV></DIV></DIV></DIV>
</BODY>
</html>